Context-Dependent Rotten Green Assertion Test ^^^^^ **Definition:** * Tests contain multiple conditional branches with different assertions in each branch **Code Example:** .. code-block:: java @Test public void testCoGroupLambda(){ CoGroupFunction> f = (i1,i2,o) -> { } ; TypeInformation ti = TypeExtractor.getCoGroupReturnTypes(f, . . . ) ; if (!(ti instanceof MissingTypeInfo)){ assertTrue(ti.isTupleType()); assertEquals(2, ti.getArity()); . . . } } **References:** .. admonition:: Quality attributes * :octicon:`file-code;1em` - Code Example * :octicon:`comment-discussion;1em` - Cause and Effect * :octicon:`graph;1em` - Frequency * :octicon:`sync;1em` - Refactoring * `RTj: a Java framework for detecting and refactoring rotten green test cases `_ :octicon:`file-code;1em` :octicon:`comment-discussion;1em` :octicon:`graph;1em` :octicon:`sync;1em` * `Rotten green tests in Java, Pharo and Python `_ :octicon:`file-code;1em` :octicon:`comment-discussion;1em` :octicon:`sync;1em`